package com.css.fxfzypg.modules.resultupload.service;

import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.SettingSeismic.entity.SettingSeismicDetails;
import com.css.fxfzypg.modules.earthquakedisasterloss.vo.SeismicInfluencefliedVO;
import com.css.fxfzypg.modules.resultupload.repository.entity.ResultDetailsEntity;
import com.css.fxfzypg.modules.resultupload.repository.entity.ResultMainEntity;
import com.css.fxfzypg.modules.resultupload.vo.ResultMainEntityVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: fxfzypg
 * @Author: lhl
 * @CreateDate: 2022/11/3 17:08
 */
public interface ResultTotalService {

    void saveYpgResult(String taskId,String range);

    void saveYpgResultNew(String taskId, String detailsId, List<SettingSeismicDetails> list);

    List<ResultDetailsEntity> getResultDetailsByTaskId(String taskId,String dataSource);

    void updateResultMainEntity(Map<String, ResultMainEntity> listMap, String type);

    void updateResultDetailsEntity(ResultDetailsEntity entity);

    ResultDetailsEntity getResultDetailsEntity(String taskId,int faultNum, BigDecimal earthquakeLevel,int angle);


    Map<String,Object>  getAll(String taskId,Integer curPage,Integer pageSize);

    List<ResultMainEntity> allNoPage(String taskId);

    RestResponse getAllDetails(String taskId);

    RestResponse updateAll(List<ResultMainEntity> list);

    List<ResultMainEntity> exportExcel(String taskId);

    void saveRange(String range, String taskId);

    void deleteRange( String taskId);

    String getRangeByTaskId(String taskId);
}
